package com.elec.domain.entity;

import java.util.Date;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 存储用户的实时用电数据(UsageData)表实体类
 *
 * @author yu
 * @since 2024-07-05 13:42:59
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("usage_data")
public class UsageData {
    //数据记录ID
    @TableId
    private Integer dataId;

    //用户ID，关联用户表
    private Integer userId;
    //数据记录时间
    private Date timestamp;
    //实时用电量
    private Double electricityUsage;
    //电压
    private Double voltage;
    //电流
    private Double current;
    //功率
    private Double power;


}
